package com.szly.phm.common.entity.dto.user;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * @Description : ${创建类}
 * @Author : chengjiang
 * @Date: 2021/7/5 15:30
 */
@Data
public class UpdatePasswordDTO {

    @NotBlank(message = "旧密码不能为空")
    @Length(min = 6,max = 16,message = "旧密码长度6至16位")
    @ApiModelProperty(value = "旧密码(长度6至16位)",required = true)
    private String oldPassword;

    @NotBlank(message = "新密码不能为空")
    @ApiModelProperty(value = "新密码(长度6至16位)",required = true)
    @Length(min = 6,max = 16,message = "新密码长度6至16位")
    private String newPassword;

    @NotBlank(message = "确认密码不能为空")
    @Length(min = 6,max = 16,message = "旧密码长度6至16位")
    @ApiModelProperty(value = "确认密码(长度6至16位)",required = true)
    private String confirmPassword;

}
